package org.example.clouddemo.bean.common.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
@Data
public class ProductVO {
    @ApiModelProperty(value = "ID")
    @TableId("id")
    private Long id;

    @ApiModelProperty(value = "产品名称")
    @TableField("product_name")
    private String productName;

    @ApiModelProperty(value = "图片")
    @TableField("product_img")
    private String productImg;

    @ApiModelProperty(value = "价格")
    @TableField("price")
    private BigDecimal price;

    @ApiModelProperty(value = "描述")
    @TableField("product_desc")
    private String productDesc;

    @ApiModelProperty(value = "排序")
    @TableField("sort_index")
    private Integer sortIndex;

    @ApiModelProperty(value = "是否启用（1-是，0-否）")
    @TableField("enable_flag")
    private Boolean enableFlag;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "产品分类")
    @TableField("category")
    private String category;

    private int stock;
}
